/**
 * @Author
 * @Date 2019/5/30
 * @Desc 存放关于系统全局的状态
 */
// import i18n from '@/i18n/vue-i18n'

const state = {
  init: false, // 刚进页面之前init为false,
  //token 信息
  token: ''
}

const mutations = {
  UPDATE_TOKEN: (state, token) => {
    state.token = token
  }
}

const actions = {
  updateToken({ commit }, token) {
    commit('UPDATE_TOKEN', token)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
